package export

import "hc_server/pkg/setting"

const EXT = ".xlsx"

// GetExcelFullUrl 获取相对路径的Excel文件
func GetExcelFullUrl(name string) string {
	return setting.GetConfig().App.PrefixUrl + "/" + GetExcelPath() + name
}

// GetExcelPath 获取相对路径的Excel文件夹
func GetExcelPath() string {
	return setting.GetConfig().App.ExportSavePath
}

// GetExcelFullPath 获取绝对路径的Excel文件
func GetExcelFullPath() string {
	return setting.GetConfig().App.RuntimeRootPath + GetExcelPath()
}
